From: Matthias Clasen Date: Mon, 13 Dec 2021 02:28:34 +0000 (-0500) Subject: dragicon: No events, please X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~91^2^2~64^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bbb1404bd313e89521e2421029423927536def81;p=gtk4.git dragicon: No events, please We run into trouble on X11 if the widgets in the drag icon have drop targets attached. Prevent this by suppressing event delivery to drag icons outright. --- diff --git a/gtk/gtkdragicon.c b/gtk/gtkdragicon.c index 43c8940e03..e4deb8adf7 100644 --- a/gtk/gtkdragicon.c +++ b/gtk/gtkdragicon.c @@ -386,6 +386,7 @@ gtk_drag_icon_class_init (GtkDragIconClass *klass) static void gtk_drag_icon_init (GtkDragIcon *self) { + gtk_widget_set_can_target (GTK_WIDGET (self), FALSE); } /** @@ -568,7 +569,7 @@ gtk_drag_icon_create_widget_for_value (const GValue *value) node = gsk_value_get_render_node (value); if (node == NULL) return NULL; - + gsk_render_node_get_bounds (node, &bounds); paintable = gtk_render_node_paintable_new (node, &bounds); image = gtk_image_new_from_paintable (paintable);